import React, { PureComponent } from 'react';

export default class Toggle extends PureComponent {
    constructor(props) {
        super(props)
    }

    render() {
        const { isClose, onToggle } = this.props
        return (
            <div  onClick={()=>onToggle()} style={{width:'50px',lineHeight:'50px',textAlign:'center',background:'#1d365d',borderRadius:'50%',color:'#fff',fontSize:'20px',position:'absolute',bottom:'10px',right:'10px'}}>
            {isClose?'<>':'X'}
            </div>)
    }
}